package com.siyao.redvip.ui.fragment;

import com.siyao.redvip.R;
import com.siyao.redvip.ui.activity.LoginActivity;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.ViewGroup;

public class LoadPageFragment4 extends Fragment{

	private static LoadPageFragment4 fragment1;
	
	public static LoadPageFragment4  getInstance(){
		if(fragment1 ==null){
			fragment1 = new LoadPageFragment4();
		}
		return fragment1;
	}
	
	@Override
	public View onCreateView(LayoutInflater inflater,
			@Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
		super.onCreateView(inflater, container, savedInstanceState);
		View view = inflater.inflate(R.layout.loadpage_fragment_4, container,false);
		view.findViewById(R.id.tvInNew).setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				startActivity(new Intent(getActivity(),
						LoginActivity.class));
				getActivity().finish();
				getActivity().overridePendingTransition(R.anim.zoom_enter,
						R.anim.zoom_exit);
			}
		});
		return view;
	}
}
